{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    <div class="row">
        <div class="col-lg-12">
            <h1>{{ Procedure.nomProcedure }}</h1>
        </div>
    </div><!-- /.row -->
    <div class="row">
        <div class="col-lg-12">
            <h2>{{ Phase.nomPhase }}</h2> <a href="{{ path('cnam_actiman_procedure_phaseEdit', {'idpha': Phase.id}) }}" >Editer phase</a> / 
            <a href="{{ path('cnam_actiman_procedure_phaseDelete', {'idpha': Phase.id}) }}">Supprimer phase</a>
        </div>
    </div><!-- /.row -->

    {% block content %}


        <div class="row">
            <div class="col-lg-7">
                <h2>Liste des Opérations </h2> <a href="{{ path('cnam_actiman_procedure_operationAdd', {'idpha': Phase.id}) }}">Ajouter opération</a> 
                <div class="table-responsive">
                    <table class="table table-bordered table-hover tablesorter">
                        <thead>
                            <tr>
                                <th>Opération <i class="fa fa-sort"></i></th>
                                <th>Temps Théorique <i class="fa fa-sort"></i></th>
                                <th>Dépendance <i class="fa fa-sort"></i></th>
                                <th>Service <i class="fa fa-sort"></i></th>
                                <th>Action <i class="fa fa-sort"></i></th>
                            </tr>
                        </thead>
                        <tbody>
                            {% for Operation in Operations %}
                                <tr>
                                    <td>{{ Operation.nomOperation }}</td>
                                    <td>{{ Operation.delaiOperation }}</td>
                                    <td>{{ Operation.dependanceOperation }}</td>
                                    <td>{{ Operation.Service.nomService }}</td>

                                    <td><a href="{{ path('cnam_actiman_procedure_operationEdit', {'idop': Operation.id}) }}">Edit</a>/<a href="{{ path('cnam_actiman_procedure_operationDelete', {'idop': Operation.id}) }}">Suprimer</a></td>
                                </tr>

                            {% endfor %}

                        </tbody>
                    </table>
                </div>
            </div>
            
                <div class="row">
                    <div class="cbutton_soiy">
                        <a href="{{ path('cnam_actiman_procedure_phase', {'idpro':Phase.acProcedure.id}) }}" class="btn btn-primary btn-xs"><i class="fa fa-reply"></i> Retour</a>
                    </div>
                </div>
 

        </div><!-- /.row -->
    {% endblock%}
{% endblock%}

